package cn.kgc.vue.response;

/**
 * @author 课工场
 * @date 2024/9/20
 * @description  响应状态码的枚举
 */
public enum ResponseStatus {

    UN_AUTH(401,"请认证后访问"),
    SUCCESS(0,"操作成功"),
    FAIL(110,"操作失败"),
    ERROR(500,"服务器繁忙,请稍后再试...");

    private String message;
    private Integer code;

    ResponseStatus(Integer code,String message){
        this.code = code;
        this.message =message;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
